﻿using Sidvall.UI.Views;

namespace Sidvall.UI.Configuration
{
	public class ConfigurationContext : IConfigurationContext
	{
		#region Public Members

		public IRegionManager RegionManager { get; set; }

		#region Regions

		private Sidvall.UI.Views.RegionCollection _Regions;
		public Sidvall.UI.Views.RegionCollection Regions
		{
			get
			{
				return _Regions;
			}
			private set
			{
				_Regions = value;
			}
		}

		#endregion

		#region ToString

		public override string ToString()
		{
			return "ConfigurationContext";
		}

		#endregion

		#endregion
		#region Constructors

		public ConfigurationContext(IRegionManager regionManager)
		{
			Sidvall.UI.Views.RegionCollection regions;

			this.RegionManager = regionManager;
			regions = new Sidvall.UI.Views.RegionCollection("CenterContent", regionManager);
			regions.Add("CenterContent", null);
			this.Regions = regions;
		}

		#endregion
	}
}
